package cn.edu.zut.cs.Model;

import org.springframework.stereotype.Component;

@Component
public class Setprice {
    private int Price;
    private int YearPrice;

    public int getPrice() {
        return Price;
    }

    public void setPrice(int price) {
        Price = price;
    }

    public int getYearPrice() {
        return YearPrice;
    }

    public void setYearPrice(int yearPrice) {
        YearPrice = yearPrice;
    }

    @Override
    public String toString() {
        return "Setprice{" +
                "Price=" + Price +
                ", YearPrice=" + YearPrice +
                '}';
    }
}
